const mongoose = require('mongoose');

const HotTopicSchema = new mongoose.Schema({
  title: String,
  count: { type: Number, default: 0 },
  content: String,
  tags: [String],
  cover: String,
  date: { type: Date, default: Date.now },
  category: String // 添加 category 字段
});

module.exports = mongoose.model('HotTopic', HotTopicSchema);
